﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyBlog.DataEntity;

namespace MyBlog.DataAccess
{
    internal class MoodMap : System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<Tbl_Mood>
    {
        public MoodMap()
        {
            this.HasMany(e => e.Tbl_MoodComment)
                .WithRequired(e => e.Tbl_Mood)
                .HasForeignKey(e => e.MoodId)
                .WillCascadeOnDelete(false);

        }
    }
}
